{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
        <script type="text/javascript">
            var primary_menu = "menu_3";
            var sub_menu = "menu_3_1";
        </script>

        <div class="row">
         <form method="post" action="/pollution/release_transfer/submitTransfer/" enctype="multipart/form-data" class="formSubmit">
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>特征化学污染物信息</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                        </div>
                    </div>
                    <div class="panel-body with-table">
                    <input type="hidden" name="id" value="{{ basic.id }}">
                        <table class="input_in table-detail">
                            <tr>
                                <th width="230">污染物名称</th>
                                <td><input datatype="*" type="text" name="name" value="{{ basic.name }}"></td>
                                <th width="230">污染物类型</th>
                                <td>
                                    <select name="type">
                                        <option value="1">重点环境管理类特征化学污染物</option>
                                        <option value="2">其它特征化学污染物</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th>对应产品</th>
                                <td>
                                    <select name="product" >
                                        {% for pro in product %}
                                            {% ifequal basic.product.id pro.id %}
                                        <option value="{{ pro.id }}" selected="selected">{{ pro.name }}</option>
                                            {% else %}
                                        <option value="{{ pro.id }}" >{{ pro.name }}</option>
                                            {% endifequal %}
                                        {% endfor %}
                                    </select>
                                </td>
                                <th width="230">CAS号</th>
                                <td><input datatype="*" type="text" name="cas" value="{{ basic.cas }}"></td>
                            </tr>
                            
                            <tr>
                                <th>释放情况</th>
                                <td colspan="3"><input datatype="*" type="text" value="{{ basic.rel_condition }}" name="rel_condition"></td>
                            </tr>
                            <tr>
                                <th>释放至废气/有组织废气排放（t/a）</th>
                                <td><input datatype="*" type="text" value="{{ basic.rel_yes }}" name="rel_yes"></td>
                                <th>释放至废气/无组织废气排放（t/a）</th>
                                <td><input datatype="*" type="text" value="{{ basic.rel_no }}" name="rel_no"></td>
                            </tr>
                            <tr>
                                <th>释放至水体（t/a）</th>
                                <td><input datatype="*" type="text" value="{{ basic.rel_water }}" name="rel_water"></td>
                                <th>释放至土壤（t/a）</th>
                                <td><input datatype="*" type="text" value="{{ basic.rel_tu }}" name="rel_tu"></td>
                            </tr>
                            <tr>
                                <th>释放总量</th>
                                <td colspan="3"><input datatype="n" type="text" value="{{ basic.rel_total }}" name="rel_total"></td>
                            </tr>
                            <tr>
                                <th>转移情况</th>
                                <td colspan="3"><input datatype="*" type="text" value="{{ basic.transform_condition }}" name="transform_condition"></td>
                            </tr>
                            <tr>
                                <th>转移到污水处理厂（t/a）</th>
                                <td><input datatype="*" type="text" value="{{ basic.transform_water }}" name="transform_water"></td>
                                <th>转移到固废处置单位（t/a）</th>
                                <td><input datatype="*" type="text" value="{{ basic.transform_gf }}" name="transform_gf"></td>
                            </tr>
                            <tr>
                                <th>转移情况</th>
                                <td colspan="3"><input datatype="n" type="text" value="{{ basic.transform_total }}" name="transform_total"></td>
                            </tr>
                            <tr>
                                <th>核算方法</th>
                                <td colspan="3">
                                    <select name="adjust">
                                        <option value="1">监测法</option>
                                        <option value="2">物料衡算法</option>
                                        <option value="3">排污系数法</option>
                                        <option value="4">工程估算法</option>
                                        <option value="5">其它</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th>填报依据</th>
                                <td>
                                    <select name="report_by">
                                        <option value="1">环评报告</option>
                                        <option value="2">重点环境管理危险化学品风评报告</option>
                                        <option value="3">其它</option>
                                    </select>
                                </td>
                                <td colspan="2" style="text-align:left;">
                                    <input style="width:200px;" type="text" value="" >
                                    <button type="button" onclick="choseFile(this)">选择</button>
                                    <input style="display:none;" type="file" name="report_file" placeholder="请输入" value="">
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
  
                <div class="buttons">
			        <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存">
                                <input type="submit" class="btn btn-success btn-lg" value="确认">
			        <!-- <input class="btn btn-info btn-lg" type="reset" value="重置"/> -->
			    </div>
            </div>
          </form>
         </div> 
{% endblock %}

{% block js %}
<script language="javascript">
	function change(obj)
	    {
	    	var dom = $(obj);
	    	if(obj.checked)
	    	{
	    		dom.next().val(1);
	    	}
	    	else
	    	{
	    		dom.next().val(0);
	    	}
	    }
	</script>
{% endblock %}